package net.bplaced.streetfighter.lib.utils;

/**
 * Abstract object to be stored during runtime.
 * 
 * @author Sebastian Hoffmann <bo.hoffi@googlemail.com>
 */
public class RuntimeDataObject<T> {

    private final T _data;

    /**
     * Creates a new instance with the given data to be stored.
     * 
     * Constructs a RuntimeDataObject.
     * 
     * @param data
     *            Data to be stored
     */
    public RuntimeDataObject(T data) {

        this._data = data;
    }

    /**
     * @return Stored data
     */
    public T getData() {

        return this._data;
    }
}